package entities;

public class User {
	public final static int NEW_USER = -1;
	
	private int id;
	private String password = null;
	private String username = null;
	private String firstName = null;
	private String lastName = null;
	private String email = null;
	private String faculty = null;
	private int semester = 1;
	private String phone = null;
	private boolean isAdmin = false;
	
	public User() {
	}

	public User(int id, String password, String username, String firstName, String lastName,
			String email, String faculty, int semester, String phone, boolean isAdmin) {
		super();
		this.setId(id);
		this.setUsername(username);
		this.setPassword(password);
		this.setFirstName(firstName);
		this.setLastName(lastName);
		this.setEmail(email);
		this.setFaculty(faculty);
		this.setSemester(semester);
		this.setPhone(phone);
		this.setIsAdmin(isAdmin);
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUsername() {
		return username;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getEmail() {
		return email;
	}

	public void setFaculty(String faculty) {
		this.faculty = faculty;
	}

	public String getFaculty() {
		return faculty;
	}

	public void setSemester(int semester) {
		this.semester = semester;
	}

	public int getSemester() {
		return semester;
	}

	public void setPhone(String picture) {
		this.phone = picture;
	}

	public String getPhone() {
		return phone;
	}

	public void setIsAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	public boolean isAdmin() {
		return isAdmin;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return password;
	}
}